home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / TCL1 / GRAPH_FO / (GRAPH / CGRAPHTE / CGRAPHPA.H < prev    next >
Text File  |  1991-05-12  |  2KB  |  68 lines

  1. /******************************************************************************
  2.     CGraphPane.h
  3.  
  4.     SUPERCLASS = CFontorama.c
  5.  
  6.     Copyright ⌐ 1991 Maarten Meijer. All rights reserved.
  7.         CIS 100016,1764; FidoNet 2:512/114
  8. *******************************************************************************/
  9.  
  10. #define _H_CGraphPane
  11.  
  12. /* includes */
  13. #include "CFontorama.h"                /* Interface for its superclass        */
  14. #include "Graph.h"
  15.  
  16. /* class definition */
  17. struct CGraphPane : CFontorama {        /* Class Declaration                */
  18.                                 /** Instance Variables **/
  19.     Graph        *itsGraph;
  20.                                 /** Instance Methods **/
  21.     void        DoCommand(long cmd);    /* OVERRIDE */
  22.     void        UpdateMenus(void);        /* OVERRIDE */
  23.  
  24.                                     /** Contruction/Destruction **/
  25.     void        IGraphPane(CView *anEnclosure, CBureaucrat *aSupervisor,
  26.                             short aWidth, short aHeight,
  27.                             short aHEncl, short aVEncl,
  28.                             SizingOption aHSizing, SizingOption aVSizing);
  29.     void        IViewTemp(CView *anEnclosure, CBureaucrat *aSupervisor,
  30.                             Ptr viewData);
  31.     void        WViewTemp(Ptr viewData);
  32.     void        SaveDefault(void);
  33.     long        GetTempSize(void);
  34.  
  35.                                     /** Drawing **/
  36.     void        Draw(Rect *area);
  37.  
  38.                                     /** Printing **/
  39.     void    PrepareToPrint(void);
  40.  
  41.                                     /** Mouse **/
  42.     void        DoClick(Point hitPt, short modifierKeys, long when);
  43.     Boolean        HitSamePart(Point pointA, Point pointB);
  44.  
  45.                                     /** Cursor **/
  46.     void        AdjustCursor(Point where, RgnHandle mouseRgn);
  47.  
  48.                                     /** Scrolling **/
  49.     void        ScrollToSelection(void);
  50.                                     /** Disposal **/
  51.     void        Dispose();            /* override */
  52.                                     /** Selection **/
  53.     void        SelectConnected(void);
  54. };
  55.  
  56. /* typedefs */
  57. typedef struct    {                        /* Panorama template                    */
  58.     PanoramaTemp    sPanoramaTemp;
  59.     Point            theGrid;
  60.     short            flags;
  61.     short            textSize;
  62.     short            textFace;
  63.     Str255            textFName;
  64. } GraphPaneTemp, *GraphPaneTempP;
  65.  
  66.  
  67. /* defines */
  68. #define kNoUndoTASK        0